<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>适用范围定义</title>
<%@include file="../include/include.jsp"%>
<link rel="stylesheet" type="text/css" href="${csspath }/public.css" />
<script type="text/javascript" src="${jspath}/jquery/jquery-2.1.3.js"></script>
<link rel="stylesheet" type="text/css"
	href="${bootstrapPath}/css/bootstrap.css" />
<script type="text/javascript" src="${bootstrapPath}/js/bootstrap.js"></script>
<script type="text/javascript"
	src="${bootstrapPath}/js/bootstrap3-validation.js"></script>
<script type="text/javascript" src="${layerPath}/layer.js"></script>
<script type="text/javascript">
$(function(){
	$("#returnBtn").click(function(){
		var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
		parent.layer.close(index); //再执行关闭 
	});
});
</script>
</head>


<style>
html,body {
	overflow-y: auto;
	overflow-x:hidden;
}
.hr {
	text-align: center;
	width: 100%;
	background-color: #0071C1;
	height: 1px;
	margin-bottom: 10px;
}

.rowDiv {
	width: 90%;
}

.formDiv {
	float: left;
	width: 50%;
}

.textarea {
	width: 700px;
	height: 100px;
	max-width: 700px;
	max-height: 100px;
	resize: none;
}
.btnLength{
	width:70px;
}
.main{
  width: 1120px;
  padding: 0;
  margin: 0;
}
</style>
<body>
	<div class="main">
		<div class="hr"></div>
			<label class="col-sm-3 control-label" for="verificationMethod">生成SQL</label>
			<div class="col-sm-5" style="width: 800px;">
<!-- 				<input class="form-control input-sm text-right" id="sql" -->
<%-- 					value="${sql}" type="text"  style="width: 550px;"/> --%>
				<p id="sql" style="width: 550px;">${sql}</p>
			</div>
		<form:form id="scopeForm"
			action="#"
			class="form-horizontal" method="post"
			role="form">
			

		<table id="data_tabs" class="table" style="margin-top: 20px; margin-left: 10px;width: 50%;">
			<thead>
				<tr>
					<core:if test="${result == '1'}">
						<th class="text-left">MFGRCODE</th>
						<th class="text-left">DESCRIPTION1</th>
						<th class="text-left">DESCRIPTION2</th>
					</core:if>
					<core:if test="${result == '0'}">
						<th class="text-left">CODE</th>
						<th class="text-left">NAME</th>
					</core:if>
					
				</tr>
			</thead>
			<tbody>
						<core:if test="${result == '0'}">
							<core:forEach items="${ServiceInfoDefList}" var="reslut">
							<tr>
								<td class="text-left">${reslut.code}</td>
								<td class="text-left">${reslut.name}</td>
								</tr>
							</core:forEach>
						</core:if>
						<core:if test="${result == '1'}">
							<core:forEach items="${resultList}" var="reslut">
							<tr>
								<td class="text-left">${reslut.mfgrCode}</td>
								<td class="text-left">${reslut.description1}</td>
								<td class="text-left">${reslut.description2}</td>
								</tr>
							</core:forEach>
						</core:if>
			</tbody>
		</table>
		</form:form>
		<div style="margin-left: 200px;">
			<button type="button" class="btn btn-success btn-sm" id="returnBtn" onclick="goBack()">
				<i class="glyphicon glyphicon-retweet" style="color: #FFFFFF"></i>&nbsp;返回
			</button>
		</div>
		<div class="spliter h_10"></div>
		<div class="spliter h_10"></div>
		<div class="spliter h_10"></div>
	</div>
</body>
</html>